﻿using System.Data;
using LibDBConnect;

namespace LibDataLayer
{
    public static class DalRoles
    {
        private static readonly SqlHelper Cls = new SqlHelper();
        #region[Get-Data]
        public static DataTable GetRoles(string RoleName)
        {
            Cls.CreateNewSqlCommand();
            Cls.AddParameter("RoleName", RoleName);
            return Cls.GetData("sp_Roles_Get");
        }
        #endregion
    }

    public class DTORoles
    {
        public string RoleName { get; set; }
        public string ApplicationName { get; set; }
    }
}
